package info.ask4research.model.enums;

public enum FinishingActivity {

	NONE(0), USERCHOICE(1), TIMELIMIT(2);
	
	private int id;

	private FinishingActivity(int id) {
		this.id = id;
	}
	
	public int getId() {
		return this.id;
	}
	
    public static FinishingActivity valueOf(int value) {
        switch (value) {
            case 0: return NONE;
            case 1: return USERCHOICE;
            case 2: return TIMELIMIT;
            default: return NONE;
        }
    }
    
    public String getName() {
		switch(this.id) {
		case 0:
			return "NONE";
		case 1:
			return "USERCHOICE";
		case 2:
			return "TIMELIMIT";
		default:
			return "NONE";
		}
	}
    
    @Override
    public String toString() {
		switch(this.id) {
		case 0:
			return "NONE";
		case 1:
			return "USERCHOICE"; 
		case 2:
			return "TIMELIMIT"; 
		default:
			return "NONE";
		}
    }
    
}
